package com.cleaningcloud.cld.service.impl;

import com.cleaningcloud.cld.domain.dto.AssetsStatisticsDto;
import com.cleaningcloud.cld.mapper.other.AssetsStatisticsMapper;
import com.cleaningcloud.cld.service.IAssetsStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AssetsStatisticsServiceImpl implements IAssetsStatisticsService {

    @Autowired
    private AssetsStatisticsMapper assetsStatisticsMapper;

    @Override
    public Map<String, Object> assetHeadStatistics(AssetsStatisticsDto assetsStatisticsDto) {
        return assetsStatisticsMapper.assetHeadStatistics(assetsStatisticsDto);
    }

    @Override
    public List<Map<String, Object>> totalAssetsStatistics(AssetsStatisticsDto assetsStatisticsDto) {
        return assetsStatisticsMapper.totalAssetsStatistics(assetsStatisticsDto);
    }

    @Override
    public List<Map<String, Object>> selectAssetsDetailsList(AssetsStatisticsDto assetsStatisticsDto) {
        return assetsStatisticsMapper.selectAssetsDetailsList(assetsStatisticsDto);
    }

    @Override
    public List<Map<String, Object>> selectAssetsDetailsGroupProject(AssetsStatisticsDto assetsStatisticsDto) {
        return assetsStatisticsMapper.selectAssetsDetailsGroupProject(assetsStatisticsDto);
    }

    @Override
    public List<Map<String, Object>> selectCldAssetsDetailsList(AssetsStatisticsDto assetsStatisticsDto) {
        return assetsStatisticsMapper.selectCldAssetsDetailsList(assetsStatisticsDto);
    }
}
